<%-- 
    Document   : profile
    Created on : Feb 13, 2012, 11:25:58 PM
    Author     : Admin
--%>

<%@page import="model.ApplicantModel"%>
<%@page import="entity.Applicant"%>
<%@page import="entity.Vacancy"%>
<%@page import="java.util.ArrayList"%>
<%@page import="model.VacancyModel"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <title>Recruitment</title>
        <link rel="shortcut icon" href="images/favicon.ico"/>
        <link href="css/dark.css" rel="stylesheet" type="text/css" />
        <link href="css/prettyPhoto.css" rel="stylesheet" type="text/css" />
        <link href="css/nivo-slider.css" rel="stylesheet" type="text/css" />
        <link href="css/noscript.css" rel="stylesheet" type="text/css" media="screen,all" id="noscript" />
        <!-- Stylesheets End //-->

        <!-- Javascript Start //-->
        <link rel="stylesheet" type="text/css" href="administrator/css/jquery-ui-1.8.17.custom.css" />
        <script type="text/javascript" src="administrator/js/jquery-1.7.1.min.js"></script>
        <script type="text/javascript" src="administrator/js/jquery-ui-1.8.17.custom.min.js"></script>

        <script type="text/javascript">
            $(document).ready(function(){
                $("#txtDatecreate").datepicker();
            });

        </script>
        <style type="text/css">
            #login{
                margin-left: 450px;
                font-size: 12px;
            }
            input[type="text"]{border: 1px solid #aaaaaa; height: 21px;}
            input[type="text"]:focus{background: #ffc;}
            input[type="password"]{border: 1px solid #aaaaaa; height: 21px;}
            input[type="password"]:focus{background: #ffc;}
        </style>
    <body>
        <jsp:include page="include/header.jsp"/>
        <br>
        <div id="login">
            <h3 style="margin-left: 10px;">Update Profile</h3><br>
            <p style="color: #C92036;">${requestScope.error}</p>
            <form action="userUpdate.do" method="post" id="myForm">

                <%  ApplicantModel am = new ApplicantModel();
                            Applicant a = am.getOneApplicant(request.getSession().getAttribute("aid").toString());
                %>
                ApplicantID:<br><br>
                <input type="text" name="txtapplicantID" value="<%= a.getApplicantID() %>" readonly style="width: 200px; margin-bottom: 20px; background-color: #aaaaaa;"/><br>
                Username:<br><br>
                <input type="text" name="txtUsername" value="<%= a.getUsername() %>" style="width: 200px; margin-bottom: 20px;"/><br>
                Password:<br><br>
                <input type="password" name="txtPassword" value="<%= a.getPassword() %>" style="width: 200px; margin-bottom: 20px;"/><br>
                Applicant Name:<br><br>
                <input type="text" name="txtapplicantName" value="<%= a.getApplicantName() %>" style="width: 200px; margin-bottom: 20px;"/><br>
                Applicant Phone:<br><br>
                <input type="text" name="txtapplicantPhone" value="<%= a.getApplicantPhone() %>" style="width: 200px; margin-bottom: 20px;"/><br>
                Applicant Email:<br><br>
                <input type="text" name="txtapplicantEmail" value="<%= a.getApplicantEmail() %>" style="width: 200px; margin-bottom: 20px;"/><br>
                Applicant About:<br><br>
                <input type="text" name="txtapplicantAbout" value="<%= a.getApplicantAbout() %>" style="width: 200px; margin-bottom: 20px;"/><br>
                Date Created:<br><br>
                <input type="text" name="txtDatecreate" id="txtDatecreate" value="<%= a.getDateCreate() %>" style="width: 200px; margin-bottom: 20px;"/><br>
                <input type="hidden" name="hdStatus" value="<%= a.getStatus()%>"/>
                
                <input type="submit" value="Update" class="button" style="width: 75px;"/>
                <input type="reset" value="Reset" class="button" style="width: 75px;"/>
            </form>
        </div>
        <jsp:include page="include/footer.jsp"/>
    </body>
</html>
